{% extends "base.html" %}

{% block title %}Log in{% endblock %}

{% block ad %}
{% endblock %}

{% block content %}
<div id="dWrapper">
<div id="dPopBox">
  {% if form.errors %}
    <p class="errors">아래 정보가 잘못되었거나 또는 username과 password 맞지 않습니다.</p>
  {% endif %}
  <h1>Log in</h1>
  <form method="post" action="?next={{ next|default:"/" }}">
    {% csrf_token %}
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
          <label for="id_username">Username</label>
        </td>
        <td>
          {% if form.username.errors %}
            <p class="errors">{{ form.username.errors.as_text }}</p>
          {% endif %}
          {{ form.username }}
        </td>
      </tr>
      <tr>
        <td>
          <label for="id_password">Password</label>
        </td>
        <td>
          {% if form.password.errors %}
            <p class="errors">{{ form.password.errors.as_text }}</p>
          {% endif %}
          {{ form.password }}
        </td>
      </tr>
    </table>
    <div class="cBtn">
      <input type="submit" value="Log In &rarr;">
    </div>
  </form>
  <br />
  <p>
    <a href="{% url auth_password_reset %}"><strong>Username 또는 password 찾기?</strong></a><br /><br />
    <a href="/accounts/register/complete/"><strong>Activate?</strong></a>(문자메시지로 받은 Activate code 넣기)<br /><br />
    <a href="/accounts/register/"><strong>Sign up?</strong></a><br />
  </p>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />

</div>
{% endblock %}
